package com.xt.purchasingsystem.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xt.purchasingsystem.dto.BuyerPlanDetailDto;
import com.xt.purchasingsystem.model.BuyerPlanDetail;

import java.util.List;

/**
 * <p>
 *  采购计划明细表所有业务Mapper 接口
 * </p>
 *
 * @author yhp
 * @since 2020-05-31
 */
public interface BuyerPlanDetailMapper extends BaseMapper<BuyerPlanDetail> {
    /**
     * 根据采购计划编号查询此计划所有的计划明细
     * @param buyerPlanId
     * @return
     */
    List<BuyerPlanDetail> getAllBuyerPlanDetailsByBuyerPlanId(String buyerPlanId);

    /**
     * 查询所有未执行采购执行单的采购明细
     * @param buyerPlanDetailDto
     * @return
     */
    List<BuyerPlanDetail> getAllNOExecuteByPage(BuyerPlanDetailDto buyerPlanDetailDto);

}
